home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / tex / macros / latex2e / amslatex / amsdtx.cls < prev    next >
Text File  |  1995-01-26  |  10KB  |  256 lines

  1. %% 
  2. %% This is file `amsdtx.cls', generated 
  3. %% on <1995/1/26> with the docstrip utility (2.2i).
  4. %% 
  5. %% The original source files were:
  6. %% 
  7. %% amsdtx.dtx  (with options: `amsdtx')
  8. %%% ====================================================================
  9. %%%  @LaTeX-file{
  10. %%%     filename        = "amsdtx.dtx",
  11. %%%     version         = "1.2beta",
  12. %%%     date            = "1994/10/27",
  13. %%%     time            = "14:38:19 EDT",
  14. %%%     author          = "American Mathematical Society",
  15. %%%     copyright       = "Copyright (C) 1994 American Mathematical Society,
  16. %%%                        all rights reserved.  Copying of this file is
  17. %%%                        authorized only if either:
  18. %%%                        (1) you make absolutely no changes to your copy,
  19. %%%                        including name; OR
  20. %%%                        (2) if you do make changes, you first rename it
  21. %%%                        to some other name.",
  22. %%%     address         = "American Mathematical Society,
  23. %%%                        Technical Support,
  24. %%%                        Electronic Products and Services,
  25. %%%                        P. O. Box 6248,
  26. %%%                        Providence, RI 02940,
  27. %%%                        USA",
  28. %%%     telephone       = "401-455-4080 or (in the USA and Canada)
  29. %%%                        800-321-4AMS (321-4267)",
  30. %%%     FAX             = "401-331-3842",
  31. %%%     checksum        = "02960 707 2183 24320",
  32. %%%     email           = "tech-support@math.ams.org (Internet)",
  33. %%%     codetable       = "ISO/ASCII",
  34. %%%     keywords        = "latex, amslatex, ams-latex, user documentation",
  35. %%%     supported       = "yes",
  36. %%%     abstract        = "This is part of the AMS-\LaTeX{} distribution.
  37. %%%                        It provides a couple of document classes used
  38. %%%                        to produce user documentation or technical
  39. %%%                        documentation.",
  40. %%%     docstring       = "The checksum field above contains a CRC-16
  41. %%%                        checksum as the first value, followed by the
  42. %%%                        equivalent of the standard UNIX wc (word
  43. %%%                        count) utility output of lines, words, and
  44. %%%                        characters.  This is produced by Robert
  45. %%%                        Solovay's checksum utility.",
  46. %%%  }
  47. %%% ====================================================================
  48. \NeedsTeXFormat{LaTeX2e}
  49. \ProvidesClass{amsdtx}[1994/10/27 v1.2beta]
  50. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
  51. \ProcessOptions
  52. \LoadClass{book}
  53. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  54. \chardef\bslchar=`\\ % p. 424, TeXbook
  55. \newcommand{\addbslash}{\expandafter\@addbslash\string}
  56. \def\@addbslash#1{\bslchar\@nobslash#1}
  57. \newcommand{\nobslash}{\expandafter\@nobslash\string}
  58. \def\@nobslash#1{\ifnum`#1=\bslchar\else#1\fi}
  59. \newcommand{\autoindex}{\index}
  60. \newcommand{\ntt}{\normalfont\ttfamily}
  61. \DeclareRobustCommand{\cs}[1]{{\ntt\addbslash#1\@empty}%
  62.   \autoindex{\nobslash#1@\cs{\string#1\@empty}}}
  63. \DeclareRobustCommand{\cn}[1]{{\ntt\addbslash#1\@empty}%
  64.   \autoindex{\nobslash#1@\cn{\string#1\@empty}}}
  65. \DeclareRobustCommand{\cls}[1]{{\ntt#1}%
  66.   \autoindex{#1@\cls{#1} class}}
  67. \DeclareRobustCommand{\pkg}[1]{{\ntt#1}%
  68.   \autoindex{#1@\pkg{#1} package}}
  69. \DeclareRobustCommand{\opt}[1]{{\ntt#1}%
  70.   \autoindex{#1@\opt{#1} option}}
  71. \DeclareRobustCommand{\env}[1]{{\ntt#1}%
  72.   \autoindex{#1@\env{#1} environment}}
  73. \DeclareRobustCommand{\fn}[1]{{\ntt#1}\autoindex{#1@\fn{#1}}}
  74. \DeclareRobustCommand{\bst}[1]{{\ntt#1}\autoindex{#1@{\string\ntt{}#1
  75.   bibliography style}}}
  76. \newcommand{\indexcs}[1]{\autoindex{#1@\cs{#1}}}
  77. \hfuzz2pc
  78. \vbadness9999 \hbadness5000
  79. \def\AmS{{\protect\usefont{OMS}{cmsy}{m}{n}%
  80.   A\kern-.1667em\lower.5ex\hbox{M}\kern-.125emS}}
  81. \def\latex/{{\protect\LaTeX}}
  82. \def\amslatex/{{\protect\AmS-\protect\LaTeX}}
  83. \def\tex/{{\protect\TeX}}
  84. \def\amstex/{{\protect\AmS-\protect\TeX}}
  85. \def\bibtex/{{Bib\protect\TeX}}
  86. \def\makeindx/{MakeIndex}
  87. \def\xypic/{XY\mbox{-}pic}
  88. \newcommand{\Textures}{\textit{Textures}}
  89. \def\<#1>{\textit{$\langle$#1\/$\rangle$}}
  90. \def\@tempa#1{\begingroup
  91.   \makeatletter
  92.   \@input{\jobname.#1}\if@filesw
  93.   \expandafter\newwrite\csname tf@#1\endcsname
  94.              \immediate\openout
  95.                  \csname tf@#1\endcsname \jobname.#1\relax
  96.   \fi \global\@nobreakfalse \endgroup}
  97. \@check@eq\@starttoc\@tempa
  98. \def\@starttoc#1{\begingroup
  99.   \let\autoindex\@gobble
  100.   \makeatletter
  101.   \@input{\jobname.#1}\if@filesw
  102.   \expandafter\newwrite\csname tf@#1\endcsname
  103.              \immediate\openout
  104.                  \csname tf@#1\endcsname \jobname.#1\relax
  105.   \fi \global\@nobreakfalse \endgroup}
  106. \newcommand{\qc}[1]{}% check for prior definition
  107. \edef\qc#1{\noexpand\protect\expandafter\noexpand\csname qc \endcsname
  108.   \noexpand\protect#1}
  109. \@namedef{qc }#1#2{\begingroup\ntt
  110.   \ifx\ #2\char`\ \else\escapechar\m@ne\string#2\fi\endgroup}
  111. \DeclareRobustCommand{\qcat}{\qc\@}%
  112. \DeclareRobustCommand{\qcamp}{\qc\&}%
  113. \DeclareRobustCommand{\qcbang}{\qc\!}%
  114. \DeclareRobustCommand{\arg}[1]{{\ntt\##1}}
  115. \def\ncn#1{{\let\index\@gobble\cn{#1}}}
  116.  
  117. \DeclareRobustCommand{\cnbang}{%
  118.   \ncn{\!}\index{"!@{\ntt\bslchar\qcbang}}}
  119. \DeclareRobustCommand{\cnat}{%
  120.   \ncn{\!}\index{"@@{\ntt\bslchar\qcat}}}
  121. \def\5{\penalty500 }
  122. \renewcommand\maketitle{\par
  123.   \begingroup
  124.     \renewcommand\thefootnote{\fnsymbol{footnote}}%
  125.     \def\@makefnmark{\hbox to\z@{$\m@th^{\@thefnmark}$\hss}}%
  126.     \long\def\@makefntext##1{\parindent 1em\noindent
  127.             \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
  128.     \if@twocolumn
  129.       \ifnum \col@number=\@ne
  130.         \@maketitle
  131.       \else
  132.         \twocolumn[\@maketitle]%
  133.       \fi
  134.     \else
  135.       \newpage
  136.       \global\@topnum\z@   % Prevents figures from going at top of page.
  137.       \@maketitle
  138.     \fi
  139.     \thispagestyle{plain}\@thanks
  140.   \endgroup
  141.   \setcounter{footnote}{0}%
  142.   \let\thanks\relax
  143.   \let\maketitle\relax\let\@maketitle\relax
  144.   \gdef\@thanks{}\gdef\@author{}\gdef\@title{}}
  145. \def\@maketitle{%
  146.   \newpage
  147.   \null
  148.   \vskip 2em%
  149.   \begin{center}%
  150.     {\LARGE \@title \par}%
  151.     \vskip 1.5em%
  152.     {\large
  153.       \lineskip .5em%
  154.       \begin{tabular}[t]{c}%
  155.         \@author
  156.       \end{tabular}\par}%
  157.     \vskip 1em%
  158.     {\large \@date}%
  159.   \end{center}%
  160.   \par
  161.   \uppercase\expandafter{\expandafter\toks@\expandafter{\@title}}%
  162.   \edef\@tempa{\noexpand\markboth{\the\toks@}{\the\toks@}}%
  163.   \@tempa
  164.   \vskip 1.5em}
  165. \renewcommand\section{\@startsection {section}{1}{\z@}%
  166.                                    {-.6\baselineskip \@plus -3\p@}%
  167.                                    {.4\baselineskip}
  168.                                    {\reset@font\normalsize\bfseries}}
  169. \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
  170.                                      {-.3\baselineskip\@plus -2\p@}%
  171.                                      {.2\baselineskip}%
  172.                                      {\reset@font\normalsize\bfseries}}
  173. \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
  174.                                      {-.2\baselineskip\@plus -2\p@}%
  175.                                      {.2\baselineskip}%
  176.                                      {\reset@font\normalsize\bfseries}}
  177. \renewenvironment{theindex}{%
  178.   \if@twocolumn \@restonecolfalse \else \@restonecoltrue \fi
  179.   \columnseprule \z@ \columnsep 35\p@
  180.   \let\autoindex\@gobble
  181.   \twocolumn[\section*{\indexname}]%
  182.   \@mkboth{\uppercase{\indexname}}{\uppercase{\indexname}}%
  183.   \thispagestyle{plain}\parindent\z@
  184.   \parskip\z@ \@plus .3\p@\relax
  185.   \let\item\@idxitem
  186. }{%
  187.   \if@restonecol\onecolumn\else\clearpage\fi
  188. }
  189. \renewcommand{\thesection}{\arabic{section}}
  190. \long\def\@makecaption#1#2{%
  191.   \addvspace\abovecaptionskip
  192.   \begingroup
  193.     \countdef\@parcycles=8 % local count register
  194.     \@parcycles\z@
  195.     \@setpar{\advance\@parcycles\@ne \ifnum\@parcycles>999
  196.       \@@par\@parcycles\z@\fi
  197.       \ifhmode \unskip\hskip\parfillskip\penalty-\@M\fi}%
  198.     \@hangfrom{\textbf{#1.} }\vadjust{\penalty\m@ne}#2%
  199.   \endgroup
  200.   \ifhmode\unpenalty\fi\par
  201.   \ifnum\lastpenalty=\m@ne % only one line in the caption
  202.     \unpenalty \setbox\@tempboxa\lastbox
  203.     \nointerlineskip
  204.     \hbox to\hsize{\hfill\unhbox\@tempboxa\unskip\hfill}%
  205.   \fi
  206.   \nobreak\vskip\belowcaptionskip
  207. }
  208. \renewenvironment{table}{%
  209.   \belowcaptionskip\abovecaptionskip \abovecaptionskip\z@skip
  210.   \@float{table}%
  211. }{%
  212.   \end@float
  213. }
  214. \renewenvironment{table*}{%
  215.   \belowcaptionskip\abovecaptionskip \abovecaptionskip\z@skip
  216.   \@dblfloat{table}%
  217. }{%
  218.   \end@dblfloat
  219. }
  220. \setcounter{topnumber}{4}\setcounter{bottomnumber}{4}
  221. \setcounter{totalnumber}{4}\setcounter{dbltopnumber}{4}
  222. \renewcommand{\topfraction}{.97}\renewcommand{\bottomfraction}{.97}
  223. \renewcommand{\textfraction}{.03}\renewcommand{\floatpagefraction}{.9}
  224. \renewcommand{\dbltopfraction}{.97}
  225. \renewcommand{\dblfloatpagefraction}{.9}
  226. \setlength{\floatsep}{8pt plus6pt}
  227. \setlength{\textfloatsep}{10pt plus8pt}
  228. \setlength{\intextsep}{8pt plus6pt}
  229. \setlength{\dblfloatsep}{8pt plus6pt}
  230. \setlength{\dbltextfloatsep}{10pt plus8pt}
  231. \setlength{\@fptop}{0pt}\setlength{\@fpsep}{8pt}%
  232. \setlength{\@fpbot}{0pt plus 1fil}
  233. \setlength{\@dblfptop}{0pt}\setlength{\@dblfpsep}{8pt}%
  234. \setlength{\@dblfpbot}{0pt plus 1fil}
  235.  
  236. \pagestyle{headings}
  237. \RequirePackage{doc}
  238. \def\AltMacroFont{\MacroFont}
  239. \def\hDocInput#1{\MakePercentIgnore
  240.   \begingroup
  241.   \begingroup \lccode`\~=`\@
  242.   \lowercase{\endgroup\long\def ~}##1##{%
  243.     \catcode`\==12 \skipfileheader{##1}}%
  244.   \catcode`\@=\active \catcode`\==14 % comment
  245.   \def\filename{#1}%
  246.   \@@input#1 \MakePercentComment}
  247. \def\skipfileheader#1#2 {\endgroup
  248.   \hGetFileInfo#2 version = "??" date = "??"\@nil
  249.   \begingroup\catcode`\==9 \catcode`\ =9 \futurelet\0\endgroup
  250. }
  251. \long\def\hGetFileInfo#1 version = "#2"#3 date = "#4"#5\@nil{%
  252.   \def\fileversion{#2}\def\filedate{#4}}
  253. \endinput
  254. %% 
  255. %% End of file `amsdtx.cls'.
  256.